#ifndef KEYBOARD_H_
#define KEYBOARD_H_

#include <types.h>

#define KBD_BUFFSIZE 256

#define KDB_IN 0x60

#define KBD_ERR_NOALLOC 1
#define KBD_ERR_BUFFEMPTY 2

int detect_keyboard(void);
int init_keyboard(void);
int start_keyboard(void);
int stop_keyboard(void);
int keyboard_isr(void);

int keyboard_get_key(byte *key);
int keyboard_get_keys(byte *buffer, dword *length);

#endif /*KEYBOARD_H_*/
